using System;
using System.Collections.Generic;
using SouthernLand.Common.DAL.Contact;

namespace SouthernLand.Common.BOL.Contact
{
    public class ContactSetting
    {
        #region Public Properties

        public Int32 ContactSettingID { get; set; }

        public String AdminEmail { get; set; }

        public String CompanyName { get; set; }

        public String Email { get; set; }

        public String Fax { get; set; }

        public String Phone { get; set; }

        public String Hotline { get; set; }

        public String Address { get; set; }

        #endregion

        #region public static Methods

        public static int Insert(ContactSetting obj)
        {
            var db = new ContactSettingDAL();
            return db.Insert(obj);
        }

        public static bool Update(ContactSetting obj)
        {
            var db = new ContactSettingDAL();
            return db.Update(obj);
        }

        public static bool Delete(Int32 ContactSettingID)
        {
            var db = new ContactSettingDAL();
            return db.Delete(ContactSettingID);
        }

        public static ContactSetting GetContactSettingByID(Int32 ContactSettingID)
        {
            var db = new ContactSettingDAL();
            return db.GetContactSettingByID(ContactSettingID);
        }

        //Get All ContactSetting
        public static List<ContactSetting> GetAllContactSetting(int PageIndex, int PageSize)
        {
            var db = new ContactSettingDAL();
            return db.GetAllContactSetting(PageIndex, PageSize);
        }

        // Get Count All records of Table  ContactSetting
        public static int GetCountContactSetting()
        {
            var db = new ContactSettingDAL();
            return db.GetCountContactSetting();
        }

        #endregion
    }
}